ResultProvider

@ApiStatus.Experimental
interface ResultProvider<T : Any>

Generic provider of values based on a string scope provided

Author

fzzyhmstrs

Since

0.5.3

Parameters

T

Non-null type to return

Functions

Link copied to clipboard
@ApiStatus.Experimental
open fun <R> getArgResult(scope: String, arg: ResultArg<in T, out R>): R
Link copied to clipboard
@ApiStatus.Experimental
abstract fun getResult(scope: String): T

Provides a result. Note non-null return value, so implementations should have a fallback mechanism.

Link copied to clipboard
@ApiStatus.Experimental
open fun processArgResults(scope: String, vararg arg: ResultArg.Processor<in T, *>)